home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / raytracers / _pvray / pv / scenes / wealth < prev    next >
Encoding:
Text File  |  1991-11-03  |  2.3 KB  |  127 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Tom Price
  4.  
  5.  
  6. #include "<PVray$Dir>.dat.colors"
  7. #include "<PVray$Dir>.dat.shapes"
  8. #include "<PVray$Dir>.dat.textures"
  9.  
  10. view_point
  11.   location <0.0 75.0 -100.0>
  12.   direction <0.0 -0.5 1.0>
  13.   up <0.0 1.0 0.0>
  14.   right <1.333 0.0 0.0>
  15. end_view_point
  16.  
  17. object
  18.   quadric Plane_XZ translate <0.0 -10.0 0.0> end_quadric
  19.   texture 0.05
  20.     Dark_Wood
  21.     scale <10.0 10.0 70.0>
  22.     ambient 0.8
  23.     diffuse 0.2
  24.     reflection 0.4
  25.     brilliance 3.0
  26.   end_texture
  27.   color Brown
  28. end_object
  29.  
  30. object
  31.  quadric Plane_XZ translate <0.0 200.0 0.0> end_quadric
  32.  texture
  33.   color blue 0.5 red 0.2 green 0.2
  34.   ambient 0.5
  35.   diffuse 0.5
  36.  end_texture
  37. end_object
  38.  
  39. #declare Coin = object
  40.   intersection
  41.    quadric Cylinder_Y scale <20.0 1.0 20.0> end_quadric
  42.    quadric Plane_XZ translate <0.0 1.0 0.0> end_quadric
  43.    quadric Plane_XZ translate <0.0 -1.0 0.0> inverse end_quadric
  44.   end_intersection
  45.  
  46.     texture 
  47.     0.05
  48.     ambient 0.5
  49.     diffuse 0.5
  50.     color red 1.0 green 0.89 blue 0.55
  51.     reflection 0.6
  52.     brilliance 4.0
  53.     specular 0.5
  54.     metallic
  55.   end_texture
  56.   color red 1.0 green 0.89 blue 0.55
  57. end_object
  58.  
  59.   object Coin
  60.     rotate <-15.0 0.0 -2.0>
  61.     translate <-27.0 -2.0 -3.0>
  62.   end_object
  63.  
  64.   object Coin
  65.     rotate <-15.0 0.0 0.0>
  66.     translate <-28.0 3.0 2.0>
  67.   end_object
  68.   object Coin
  69.     rotate <-15.0 0.0 0.0>
  70.     translate <-30.0 10.0 0.0>
  71.   end_object
  72.   object Coin
  73.     rotate <-15.0 0.0 0.0>
  74.     translate <-29.0 20.0 -2.0>
  75.   end_object
  76.   object Coin
  77.     rotate <-15.0 0.0 -10.0>
  78.     translate <-31.0 30.0 3.0>
  79.   end_object
  80.   object Coin
  81.     rotate <-15.0 0.0 0.0>
  82.     translate <-26.0 40.0 5.0>
  83.   end_object
  84.   object Coin
  85.     rotate <-25.0 0.0 15.0>
  86.     translate <-23.0 50.0 8.0>
  87.   end_object
  88.  
  89. object
  90.    quadric QSphere scale <35.0 35.0 35.0> end_quadric
  91.     translate <40.0 25.0 40.0>
  92.     texture 0.05
  93.       color White
  94.       ambient 0.1
  95.       diffuse 0.3
  96.       reflection 1.0
  97.       brilliance 5.0
  98.     end_texture
  99.     color White
  100. end_object
  101.  
  102. object
  103.    sphere <0.0 0.0 0.0> 20.0 end_sphere
  104.  
  105.    translate <60.0 100.0 -110.0>
  106.    texture
  107.      color White
  108.      ambient 1.0
  109.      diffuse 0.0
  110.    end_texture
  111.    light_source
  112.    color White
  113. end_object
  114.  
  115. object
  116.    sphere <0.0 0.0 0.0> 20.0 end_sphere
  117.  
  118.    translate <-60.0 100.0 -110.0>
  119.    texture
  120.      color White
  121.      ambient 1.0
  122.      diffuse 0.0
  123.    end_texture
  124.    light_source
  125.    color White
  126. end_object
  127.